home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vim_doc.zip / VIM.MAN < prev    next >
Text File  |  1993-01-12  |  6KB  |  196 lines

  1.  
  2.  
  3. VIM(1)                          USER COMMANDS                           VIM(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      vim - Vi IMitation, a programmers text editor
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      vvviiimmm [options] [file ..]
  11.      vvviiimmm [options] -t tag
  12.      vvviiimmm [options] +[command] file ..
  13.      vvviiimmm [options] -c {command} file ..
  14.      vvviiimmm [options] -e
  15.  
  16. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  17.      VVViiimmm is a text editor that is upwards compatible to vi. It can be used  to
  18.      edit any ASCII text. It is especially useful for editing programs.
  19.  
  20.      There are a lot of enhancements above vi: multi level undo, command  line
  21.      editing,   filename   completion,  on  line  help,  quoting,  etc..  Read
  22.      difference.doc for a summary of the differences between vi and Vim.
  23.  
  24.      Most often VVViiimmm is started to edit a single file with the command
  25.  
  26.           vim file
  27.  
  28.      More generally VIM is started with:
  29.  
  30.           vim [options] [filelist]
  31.  
  32.      If the filelist is missing, the editor will start with an  empty  buffer.
  33.      Otherwise exactly one out of the following four may be used to choose one
  34.      or more files to be edited.
  35.  
  36.      file ..     A list of file names. The first one (alphabetically) will  be
  37.                  the current file and read into the buffer. The cursor will be
  38.                  positioned on the first line of the buffer. You  can  get  to
  39.                  the other files with the ":next" command.
  40.  
  41.      +[num] file ..
  42.                  Same as the above, but the cursor will be positioned on  line
  43.                  "num".  If "num" is missing, the cursor will be positioned on
  44.                  the last line.
  45.  
  46.      +/pat file ..
  47.                  Same as the above, but the cursor will be positioned  on  the
  48.                  first   occurrence   of   "pat"  in  the  current  file  (see
  49.                  reference.doc, section "pattern searches" for  the  available
  50.                  search patterns).
  51.  
  52.      +{command} file ..
  53.  
  54.      -c {command} file ..
  55.                  Same as the above, but {command} will be executed  after  the
  56.                  file  has  been  read.  {command}  is  interpreted  as  an Ex
  57.                  command. If the {command} contains spaces it must be enclosed
  58.                  in  double  quotes  (this depends on the shell that is used).
  59.                  Example: Vim "+set si" main.c
  60.  
  61.  
  62.  
  63.  
  64.                               10 December 1992                               1
  65.  
  66.  
  67.  
  68. VIM(1)                          USER COMMANDS                           VIM(1)
  69.  
  70.  
  71.      -t {tag}    A tag. {tag} is looked up in the tags  file,  the  associated
  72.                  file  becomes  the current file and the associated command is
  73.                  executed. Mostly this is used  for  C  programs.  {tag}  then
  74.                  should  be  a  function  name.  The  effect  is that the file
  75.                  containing that function becomes the  current  file  and  the
  76.                  cursor  is  positioned  on  the  start  of  the function (see
  77.                  reference.doc, section "tag searches").
  78.  
  79.      -e          QuickFix mode. The error file "AztecC.Err" is  read  and  the
  80.                  first error is displayed. See reference.doc section 5.6.
  81.  
  82. OOOPPPTTTIIIOOONNNSSS
  83.      The options, if present, must precede the filelist. The  options  may  be
  84.      given in any order.
  85.  
  86.      -r          Recovery mode. The autoscript  file  is  read  to  recover  a
  87.                  crashed editing session. It has almost the same effect as "-s
  88.                  file.vim".  See  reference.doc,  chapter  "Recovery  after  a
  89.                  crash".
  90.  
  91.      -v          View mode. The 'readonly' option will be set. You  can  still
  92.                  edit  the  buffer,  but  will  be  prevented  from accidental
  93.                  overwriting a file. If you do want to overwrite a  file,  add
  94.                  an  exclamation  mark  to  the  Ex  command, as in ":w!". The
  95.                  'readonly'  option  can  be  reset  with  ":set  noro"   (see
  96.                  reference.doc, options chapter).
  97.  
  98.      -n          No autoscript file will be written. Recovery  after  a  crash
  99.                  will  be  impossible.  Handy  if you want to edit a file on a
  100.                  very slow medium (e.g. floppy). Can also be done  with  ":set
  101.                  uc=0".
  102.  
  103.      -s {scriptin}
  104.                  The script file {scriptin} is read.  The  characters  in  the
  105.                  file  are  interpreted as if you had typed them. The same can
  106.                  be done with the command ":source! {scriptin}". If the end of
  107.                  the   file  is  reached  before  the  editor  exits,  further
  108.                  characters are read from the keyboard.
  109.  
  110.      -w {scriptout}
  111.                  All the characters that you type are  recorded  in  the  file
  112.                  {scriptout},  until  you exit VIM. This is useful if you want
  113.                  to create  a  script  file  to  be  used  with  "vim  -s"  or
  114.                  ":source!".
  115.  
  116.      -T terminal Use terminal settings for "terminal".
  117.  
  118.      -d device   Open "device" for use as  a  terminal.  Only  on  the  Amiga.
  119.                  Example:  "-d con:20/30/600/150".
  120.  
  121. SSSEEEEEE AAALLLSSSOOO
  122.      Vim  documentation:  Reference.doc,  index,   difference.doc,   unix.doc,
  123.      vim.hlp.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                               10 December 1992                               2
  130.  
  131.  
  132.  
  133. VIM(1)                          USER COMMANDS                           VIM(1)
  134.  
  135.  
  136. AAAUUUTTTHHHOOORRR
  137.      Most of VIM was made by Bram Moolenaar.
  138.      VIM is based on Stevie, worked on by: Tim Thompson, Tony Andrews and G.R.
  139.      (Fred) Walter
  140.  
  141. BBBUUUGGGSSS
  142.      Probably.
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.                               10 December 1992                               3
  195.  
  196.